package org.csu.newpetstoreback.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.newpetstoreback.entity.Product;

import java.math.BigDecimal;

@Data
public class ItemVO {

//    item表中的字段
    private String itemId;
    private String productId;
    private BigDecimal listPrice;
    private BigDecimal unitCost;
    private int supplierId;
    private String status;
    private String attribute1;
    private String attribute2;
    private String attribute3;

    @JsonProperty("iImage")
    private String iImage;
    @JsonProperty("iName")
    private String iName;
    @JsonProperty("iDescn")
    private String iDescn;

//    item所属product的属性
    private String categoryId;
    private String productName;
    private String productDescription;

//    item的quantity属性来自inventory表
    private int quantity;
}

